package com.yangye.pisystem.controller;

import com.yangye.picommon.model.PiResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Page.Yang
 * @date 2019/4/4 0004
 */
@RestController
public class TestController {

    @GetMapping("/hello")
    @ResponseBody
    PiResult test(String name) {
        return PiResult.succeed("hello " + name);
    }
}
